/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.kleintjes.creational.abstractfactory_pattern.model;

import com.kleintjes.creational.abstractfactory_pattern.SpeciesFactory;

/**
 *
 * @author Hughan.Kleintjes.hughanK@gmail.com
 */
public class AbstractFactory {
    
    public SpeciesFactory getSpeciesFactory(String type) {
        if("mammal".equals(type)) {
            return new MammalFactory();
        } else {
            return new ReptileFactory();
        }
    }
        
}
